<!doctype html>
<html lang="zh-CH">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	{{--<meta name="viewport" content="width=device-width, initial-scale=1">--}}
	<title>木投网--现货资源--详情</title>
	<link rel="stylesheet" href="/resource/css/mt_index.css">
	<link rel="stylesheet" href="/resource/css/mt_now.css">
</head>
<body>
@include('common.shop_head')
<!-- 现货资源 -->
<div class="now-resource main">
	<div class="now-left left">
		<div class="title">当前位置：
			<a href="/">首页</a>&#62<a href="/new_resource">现货资源</a>&#62
			<a href="/new_resource_details?product_id={{$details['details']->product_id}}">{{$details['details']->product_name}}</a>
		</div>
		<div class="res-info">
			<div class="info-img left">
				<div class="img-booth">
					<img src="" alt="">
				</div>
				<ul class="img-thumb">
							@if(!empty($details['details_pic']->show_img1))
								<li class="active"><img src="{{$details['details_pic']->show_img1}}" alt=""></li>
							@else
								<li class="active"><img src="/resource/img/floor_shop_none.png" alt=""></li>
							@endif
							@if(!empty($details['details_pic']->show_img2))
                                <li><img src="{{$details['details_pic']->show_img2}}" alt=""></li>
                            @endif
							@if(!empty($details['details_pic']->show_img3))
                                <li><img src="{{$details['details_pic']->show_img3}}" alt=""></li>
							@endif
				</ul>
				<ul class="info-arrow">
					<li class="pre"></li>
					<li class="next"></li>
				</ul>
			</div>
			<div class="info-font left">
				<h2 class="til">{{$details['details']->product_name}}</h2>
				<div class="price">价格：<span>￥<i>{{$details['details']->price}}</i>/{{$details['details']->unit}}</span></div>
				<ul class="font-details">
					<li>规 &#160; 格：<span>{{$details['details']->spec}}</span></li>
					<li>产 &#160; 地：<span>{{$details['details']->place}}</span></li>
					<li>等 &#160; 级：<span>{{$details['details']->level}}</span></li>
					<li>起订量：<span>{{$details['details']->start_num}}{{$details['details']->unit}}</span></li>
					<li>库存量：<span>{{$details['details']->stock}}{{$details['details']->unit}}</span></li>
					<li>仓储地：<span>{{$details['details']->storage}}-{{$details['details']->address}}</span></li>
				</ul>
				<ul class="contact-info">           
					<li>联系人：<span>{{$details['details']->contact_name}}</span></li>
					<li>公 &#160; 司：<span>{{$details['details']->company}}</span></li>
				</ul>
				@if(session_get(UserEnum::USER_INFO_SESSION_KEY))
						<!-- 登录后 -->
				<div class="contact-tel">
					<i></i>
					<span>{{$details['details']->contact}}</span>
				</div>
				@else
					<div class="contact-tel">
						<i></i>
						<span>{{substr($details['details']->contact,0,6)}}****{{substr($details['details']->contact,10)}}</span>
						<a href="javascript:;">查看完整号码</a>
					</div>
					@endif
			</div>
		</div>
		<div class="res-illustrate">
			<div class="til">
				<span>商品说明</span>
			</div>
			<div class="ill-p">
				{{$details['details']->description}}
			</div>
		</div>
	</div>
	<div class="now-right left">
		<div class="classify-right">
			<div class="til">推广商品</div>
			<div class="emphases-box">
				@foreach($ad_product as $v)
					<div class="floor-shop">
						<div class="shop-img">
							<a href="/shopping_details/?product_id={{$v->product_id}}"><img src="{{$v->product_img}}" alt=""></a>
						</div>
						<div class="shop-info">
							<a href="/shopping_details/?product_id={{$v->product_id}}" class="name"><span>{{$v->product_name}}</span></a>
							<div class="price">￥{{$v->price}}/{{$v->unit}}</div>
						</div>
					</div>
				@endforeach
			</div>
		</div>
	</div>
</div>
@include('common.shop_foot')
<script src="/resource/js/jquery-1.11.3.min.js"></script>
<script src="/resource/js/mt_index.js"></script>
<script>
	//导航 商品全部 隐藏显示
	var $allW = $('.all-wrap');
	$allW.hide();
	$('.nav .nav-all').attr('rel','hide');
	$('.nav .nav-all').click(function(){
		if($(this).attr('rel') == 'hide'){
			$(this).attr('rel','show');
			$allW.show();
		}else{
			$(this).attr('rel','hide');
			$allW.hide();
		};		
	});
	//登录
	$('.contact-tel a').click(function(){
		loginShow();
	});
	function loginShow(){
		$('.popup-login').show();
		$('.popup').show();
	}
</script>
</body>
</html>